<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2020/12/29
 * Time: 15:34
 */

namespace app\api\validate;

use think\Validate;

class ClientValidate extends Validate
{
    protected $rule = [
        //主机码
        'hostkey|主机码' => 'require',
        //主机硬件信息
        'is_recovery|是否恢复原始规则' => 'in:0,1',
    ];

    protected $scene = [
        'uninstall' => ['hostkey', 'is_recovery'],//卸载回传
    ];
}